using net_work.Data.DTO.Sys;
using net_work.Data.Entity.Sys;

namespace net_work.IRepository.Sys;

public interface IPersonRepository : IRepository<Person>
{
    /// <summary>
    /// 插入个人
    /// </summary>
    /// <param name="personAddRequest">插入个人</param>
    /// <returns>个人Id</returns>
    Task<long> InsertAsync(PersonAddRequest personAddRequest);

    /// <summary>
    /// 更新个人信息
    /// </summary>
    /// <param name="personUpdateRequest">更新个人信息</param>
    /// <returns>是否成功</returns>
    Task<bool> UpdateAsync(PersonUpdateRequest personUpdateRequest);
}